<?php
/**
 * @desc 合作商数据层
 * @author kevin.wang
 * @date 2015-01-01 12:00:00
 */
class Coperation extends Base
{
	//数据表
	protected $table = 'pert_coperation';
	//查询所有合作商
	public function getCoperation()  
    {
		 $table = $this->table;
		 $filed = "`coperation_id`,`name`,`image`,`sort`";
		 $sql = "select {$filed} from `{$table}` where `delete_flag` = 0 and `is_show` = 0 order by `sort` desc, `raw_add_time` desc";
		 return $this->select_table($sql, array());
    }
}
